package com.dy.lock.screen.service.impl;

import javax.annotation.Resource;

import org.apache.log4j.Logger;
import org.springframework.stereotype.Service;

import com.dy.lock.screen.dao.TestDao;
import com.dy.lock.screen.pojo.Test;
import com.dy.lock.screen.scoket.Head;
import com.dy.lock.screen.service.TestService;

@Service("testService")
public class TestServiceImpl implements TestService {

	private static final Logger log = Logger.getLogger(TestServiceImpl.class);
	@Resource(name = "testDao")
	private TestDao testDao;

	@Override
	public boolean save(Test t, Head head) {
		// 调用数据库dao层，执行sql
		// 获取相应数据，执行其他业务逻辑
		log.info("id:" + t.getId() + ",name:" + t.getName());
		log.info(testDao.getQueryNamespace());
		return true;
	}

}
